FROM  openjdk:8-alpine
MAINTAINER niufw
VOLUME /tmp
ADD target/wms-common-1.0-SNAPSHOT.jar /app.jar
COPY wait-for-it.sh  /wait-for-it.sh
RUN  chmod +x wait-for-it.sh
RUN echo "asia/shanghai" > /etc/timezone
EXPOSE ${server.port}
ENTRYPOINT ["java","-Dfile-encoding=UTF-8","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
